package com.yue.design.factorySimple;

public class CoffeeFactory {

    public Coffee createCoffee(String name){
        Coffee c = null;
        if(name.equals("aa"))
            c= new AaCoffee();
        else if(name.equals("bb"))
            c= new BbCoffee();
        return c;
    }
}
